package cn.itsource.pethome.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer pageSize=10;
    private Integer currentPage=1;

    //总条数的索引
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
}
